package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
public class SupplierManageSaveDTO {
    @ApiModelProperty(value = "供应商名称")
    @NotBlank(message = "供应商名称不能为空")
    @Length(max = 20,message = "供应商名称不能超过20个字符")
    private String supplierName;

    @ApiModelProperty(value = "公司名称")
    @NotBlank(message = "公司名称不能为空")
    @Length(max = 100,message = "公司名称不能超过100个字符")
    private String companyName;

    @ApiModelProperty(value = "供应商地址")
    @NotBlank(message = "供应商地址不能为空")
    @Length(max = 500,message = "供应商地址不能超过500个字符")
    private String supplierAddr;

    @ApiModelProperty(value = "供应商电话")
    @NotBlank(message = "供应商电话不能为空")
    @Length(max = 30,message = "供应商电话不能超过30个字符")
    private String supplierPhone;

    @ApiModelProperty(value = "供应商类型  0:省缺 1:自有品牌 2:供应链代理商")
    @NotNull(message = "供应商类型不能为空")
    private Integer supplierType;

    @ApiModelProperty(value = "保证金标准")
    @NotBlank(message = "保证金标准不能为空")
    @Length(max = 50,message = "保证金标准不能超过50个字符")
    private String earnestStandard;

    @ApiModelProperty(value = "结算方式 0:省缺 1:日结 2:周结 3:半月结 4:周结")
    @NotNull(message = "结算方式不能为空")
    private Integer settlement;

    @ApiModelProperty(value = "是否有ip合作 0:无 1:有")
    @NotNull(message = "是否有ip合作不能为空")
    private Integer isIp;

    @ApiModelProperty(value = "营业执照")
    @NotBlank(message = "营业执照不能为空")
    private String businessLicense;

    @ApiModelProperty(value = "资质证明")
    @NotBlank(message = "资质证明不能为空")
    private String certification;

    @ApiModelProperty(value = "商标")
    @NotBlank(message = "商标不能为空")
    private String brand;

    @ApiModelProperty(value = "合作协议")
    @NotBlank(message = "合作协议不能为空")
    private String cooperationAgreement;

    @ApiModelProperty(value = "daoId")
    @NotNull(message = "daoId不能为空")
    private Long daoId;
}
